package com.lnt.singleton;

/**
 * @title : 饿汉式单例模式
 * @createDate : 2021-11-04 09:51
 * @creater : LuNanTing
 * @className : HungrySingleton
 */
public class HungrySingleton {

    private static final HungrySingleton instance = new HungrySingleton();

    private HungrySingleton(){

    }

    public static HungrySingleton getInstance(){
        return instance;
    }
}
